<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<?php
$title = (isset($title) && $title != '') ? $title : 'Chamroeun Microfinance Limited';
$keyword = (isset($keyword) && $keyword != '') ? $keyword : 'Chamroeun Microfinance Limited';
$description = (isset($description) && $description != '') ? $description : 'Chamroeun Microfinance Limited'; 
?>
<title><?php echo $title; ?></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<?php echo $keyword ; ?>" />
<meta name="title" content="<?php echo $title;?>" />
<meta name="description" content="<?php echo $description; ?>" />
<?php $this->load->view('site/head'); ?>
</head>
<body>
<div id="wrapper">
	<?php $this->load->view('site/header'); ?>
	<?php if (isset($hmenu)){$this->load->view('site/hmenu');} ?>
    <?php //if (isset($banner) && count($banner) > 0){$this->load->view('site/banner');}	?>
	<div id="content-container">
        <?php 
    		$margin_left = "";
    		if (isset($left)) {
                $classLeft = 'class-left';
                if(isset($content_left) && $content_left == 'report')
                    $classLeft = "class-left-report";
    			echo '<div id="content-left" class="'.$classLeft.'">';
    			$margin_left = "content-margin-left";
    			$this->load->view($left);	
    			echo '</div>'; 
    		}
    	?>
        <?php 
        	$margin_right = "";
    		if (isset($right)) {
    			echo '<div id="content-right">';
    			$margin_right = "content-margin-right";
    			$this->load->view('site/content-right');
    			echo '</div>';	
    		}
    	?>
        <div id="content-main" class="<?php echo $margin_left.'  '.$margin_right;?>">
            <div id="breadcrumb"><?php $this->load->view('site/breadcrumb'); ?></div>
		<?php
            if(isset($banners) && count($banners)) $this->load->view('site/banner'); 
            $this->load->view($main); 
        ?>
	   </div>
       <div style="clear:both;"></div>
	</div>
    <div id="footer-container">
	   <?php $this->load->view('site/footer'); ?>
    </div>
</div>
</body>
</html>